package com.tbit.main.service;

import com.tbit.main.pojo.Account;

/**
 * 权限检查
 */
public interface PurviewService {

    /**
     * 权限检查
     *
     * @param operateId 操作accountId
     * @param objId     accountId
     */
    boolean purviewCheck(Integer operateId, Integer objId);

    /**
     * 权限检查
     *
     * @param opAcc  Account
     * @param objAcc Account
     */
    boolean purviewCheck(Account opAcc, Account objAcc);
}
